﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMail.Common.Interfaces.Data
{
  /// <summary>
  /// Represents an object that perform actions
  /// </summary>
  public interface IActionableObject
  {
    event EventHandler<MailActionEventArgs> ActionPerformed;
  }

  public class MailActionEventArgs : EventArgs
  {
    public IMailAction Action { get; private set; }

    public MailActionEventArgs(IMailAction action)
    {
      this.Action = action;
    }
  }
}
